package directoryPath;
import java.io.File;
import java.io.IOException;

import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;


public class DirectoryController {

	private File file;// = new File("D:/facu/analisis y recu info/datosprueba");

	public void setDir(String path){
		this.file = new File(path);
	}
	
	public File getFile(){
		return file;
	}
	
	public File[] getListFiles(){
		return file.listFiles();
		
	} 
	
	public  Directory getDirectory() throws IOException {
	    return FSDirectory.open(file);
	}
}
